package com.kylinhunter.ch.proxy;
 
import java.lang.reflect.Proxy;
import java.util.List;

import com.kylinhunter.ch.config.main.SystemConfigProxyCommit;
public class ServiceProxyFactory
{
	private static ServiceProxyHandler handler = new ServiceProxyHandler();
    public static Object getProxy(Object object)
    {
    	
        handler.setTarget(object);
       
        return Proxy.newProxyInstance(object.getClass().getClassLoader(),object.getClass().getInterfaces(),handler);
    }
    
}